package com.deyuanyun.pic.pbf.service.impl;

import com.deyuanyun.pic.pbf.domain.CorrosionEnvironment;
import com.deyuanyun.pic.pbf.mapper.CorrosionEnvironmentMapper;
import com.deyuanyun.pic.pbf.service.CorrosionEnvironmentService;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CorrosionEnvironmentServiceImpl implements CorrosionEnvironmentService {
    @Autowired
    private CorrosionEnvironmentMapper corrosionEnvironmentMapper;

    private static final Logger logger = LoggerFactory.getLogger(CorrosionEnvironmentServiceImpl.class);

    public CorrosionEnvironment selectByPrimaryKey(String id) {
        return this.corrosionEnvironmentMapper.selectByPrimaryKey(id);
    }

    public int deleteByPrimaryKey(String id) {
        return this.corrosionEnvironmentMapper.deleteByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(CorrosionEnvironment record) {
        return this.corrosionEnvironmentMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(CorrosionEnvironment record) {
        return this.corrosionEnvironmentMapper.updateByPrimaryKey(record);
    }

    public int insert(CorrosionEnvironment record) {
        return this.corrosionEnvironmentMapper.insert(record);
    }
}